<%@ page language="java" import="java.util.*,java.net.URLDecoder" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String loginName="";
String uid="";
Cookie[] cookArr = request.getCookies();
if(cookArr!=null){
	for(Cookie c:cookArr){
		if(c.getName().equals("LOGINNAME")){
			loginName = URLDecoder.decode(c.getValue(),"UTF-8");
		}
		if(c.getName().equals("UID")){
			uid = c.getValue();
		}
		c.getValue();
	}
}
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>修改购物车</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="css/shopCar.css"/>
  </head>
    <script type="text/javascript">
		function my(){
			var msg = '${MSG}';
			if(msg!=""){
				alert(msg);
			}
		}
		
	 	
	</script>
  <body >
	 <form action="<%=basePath%>shopCar/updateShopCarHand.do?" method="post" >
			<div class="big">
				<div class="head"><h2>修改购物车商品</h2></div>
				<hr />
				<div class="main">
					<div class="main_left">
						<ul style="list-style: none;">
							<li>商品名称：</li>
							<li>商品图片：</li>
							<li id="price">商品价格：</li>
							<li id="number">购买数量：</li>
							
						</ul>
					</div>
					<div class="main_right">
						<ul style="list-style: none;">
							<li id="sname">${shopCar.sname }</li>
							<li id="pic"><img alt="图片不存在" src="${shopCar.spicture }"  ></li>
							<li>${shopCar.sprice}</li>
							<li>
								<input type="text" name="gnumber" value="${shopCar.gnumber}">	
							</li>
							
						</ul>
						
					</div>
				</div>
				<div class="footer">
					<input type="hidden" name="id" value="${shopCar.id}"> 
					<input type="hidden" name="shop_id" value="${shopCar.shop_id}"> 
					<input type="hidden" name="uname" value="<%=loginName%>">
					<input class="bt1" type="submit" value="修改">
				</div>
			</div>
		</form>
  </body>
</html>
